<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ad_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ad_title" data-rule="required" class="form-control" name="row[ad_title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ad_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-ad_img" data-rule="required" class="form-control" size="50" name="row[ad_img]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-ad_img" class="btn btn-danger plupload" data-input-id="c-ad_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-ad_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-ad_img" class="btn btn-primary fachoose" data-input-id="c-ad_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-ad_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-ad_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jump_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-jump_type" data-rule="required" class="form-control selectpicker" name="row[jump_type]">
                {foreach name="jumpTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group js-chage-input" id="js-task-no">
        <label class="control-label col-xs-12 col-sm-2">{:__('任务号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-to_id" class="form-control" name="row[to_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group js-chage-input" id="js-url">
        <label class="control-label col-xs-12 col-sm-2">{:__('链接地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ad_link" class="form-control" name="row[ad_link]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序值')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort"  class="form-control" name="row[sort]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d 00:00:00')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d 23:59:59')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
